package name.jiaosha.air;

import java.util.Properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MainController {

	@Value("#{appConf}")
	private Properties appConf;

	@RequestMapping("/admin/main.do")
	public ModelAndView handleRequest() throws Exception {


		ModelMap model = new ModelMap();
		model.addAttribute("appConf", appConf);
		return new ModelAndView("admin/desktop",model);
	}
	
	

}
